BaseSubsystem.GetIntVariable 方法
取得使用者定義變數的細節(短整數)。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
IUserVariable<short> GetIntVariable(
string Name,
IUserVariable Parent = null
)
Function GetIntVariable(
Name As String,
Parent = null As IUserVariable
) As IUserVariable(Of Short)
參數
Name
型別:string
變數名稱。
Parent
預設值:null
IUserVariable 的父資料夾,預設會從根資料夾取得變數。
備註
- Name 字串使用 UTF-16 編碼。
- 此變數可用於 KINGSTAR 示波器 及即時記錄檔。
回傳值
型別:IUserVariable<short>
回傳一個使用者定義變數(短整數)。
可用的 EtherCAT 狀態
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
參見